package com.sky.mapper;

import com.sky.entity.Dish;
import com.sky.entity.DishFlavor;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    //往口味表里边插
    void insertFlavor(List<DishFlavor> flavors);
    //查询dish里边的dish对象
    Dish dishGetById(Long id);
    //通过id删除dish_flavor里面的数据
    void deleteByDishId(Long aLong);
    //通过id查询菜品口味表
    //将口味表方到diashDto中返回
    List<DishFlavor> selectDishFlavor(Long id);
    //修改员工状态
    void putStatus(Integer status, Integer id);



}
